Skip to content

feat(pool): Add try_begin method#10

Merged
jdrouet merged 1 commit intojdrouet:mainfrom
Theo-Fourniez:patch-1
Apr 26, 2026
Merged

feat(pool): Add try_begin method#10
jdrouet merged 1 commit intojdrouet:mainfrom
Theo-Fourniez:patch-1

Conversation

@Theo-Fourniez
Copy link
Copy Markdown
Contributor

Description

Why is this needed

Through the sqlx_tracing::Pool we cannot access this sqlx::Pool method

@jdrouet jdrouet merged commit bcef1c7 into jdrouet:main Apr 26, 2026
1 check passed
@github-actions github-actions Bot mentioned this pull request Apr 26, 2026
jdrouet added a commit that referenced this pull request Apr 26, 2026
jdrouet added a commit that referenced this pull request Apr 26, 2026
* fix: relax Clone bound on Pool<DB>

The derived Clone implementation adds an implicit DB: Clone bound,
which breaks downstream code because sqlx database markers like
Postgres and Sqlite don't implement Clone. sqlx::Pool<DB> itself is
Clone regardless of DB, so a manual impl drops the spurious bound.

Adds compile-time assertions for Pool<Postgres> and Pool<Sqlite>.

* style: strip trailing whitespace introduced in #10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants